all: $(EXECUTABLE)
	$(MAKE) -C CMD/
	$(MAKE) -C GUI/

clean:
	$(MAKE) -C CMD/ clean
	$(MAKE) -C GUI/ clean

debug: CXXFLAGS+=-pg
debug: $(EXECUTABLE)

commit: 
	git add "../src"
	git commit -m "$(COMMENT)"
	git push -u origin master

db:
	mv ~/Desktop/EECE637/software_coverage_tool/KEEP/DB/latest_DB.sql ~/Desktop/EECE637/software_coverage_tool/KEEP/DB/be4_latest_DB.sql
	mysqldump -h localhost -u elie -p SoftwareCoverage > ~/Desktop/EECE637/software_coverage_tool/KEEP/DB/latest_DB.sql

antlr:
	java -jar $(SOURCE_PATH)/antlr-3.2.jar $(SOURCE_PATH)/C_types.g
	mv $(SOURCE_PATH)/C_typesLexer.c $(SOURCE_PATH)/C_typesLexer.cpp
	mv $(SOURCE_PATH)/C_typesParser.c $(SOURCE_PATH)/C_typesParser.cpp
